<?php

use yii\db\Migration;

/**
 * Class m200331_064943_user_add_ratelimit_fields
 */
class m200331_064943_user_add_ratelimit_fields extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->addColumn('{{%user}}', 'allowance', $this->integer(11));
        $this->addColumn('{{%user}}', 'allowance_updated_at', $this->integer(11));
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropColumn('{{%user}}', 'allowance');
        $this->dropColumn('{{%user}}', 'allowance_updated_at');
    }

}
